package com.liujun.spring4x.demo.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 基本的用户信息
 *
 * @ClassName User
 * @Author liujun
 * @Date 2018-08-05 07:47:00
 * @Version 1.0
 */
public class User implements Serializable {

	/**
	 * 用户信息
	 */
	private int userId;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 密码
	 */
	private String passWord;

	/**
	 * 积分
	 */
	private int credits;

	/**
	 * 最后登录的ip
	 */
	private String lastIp;

	/**
	 * 最后登录的时间
	 */
	private Date lastVisit;

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public int getCredits() {
		return credits;
	}

	public void setCredits(int credits) {
		this.credits = credits;
	}

	public String getLastIp() {
		return lastIp;
	}

	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}

	public Date getLastVisit() {
		return lastVisit;
	}

	public void setLastVisit(Date lastVisit) {
		this.lastVisit = lastVisit;
	}

	@Override public String toString() {
		final StringBuilder sb = new StringBuilder("User{");
		sb.append("userId=").append(userId);
		sb.append(", userName='").append(userName).append('\'');
		sb.append(", passWord='").append(passWord).append('\'');
		sb.append(", credits=").append(credits);
		sb.append(", lastIp='").append(lastIp).append('\'');
		sb.append(", lastVisit=").append(lastVisit);
		sb.append('}');
		return sb.toString();
	}
}
